<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>8-事件对象</title>
		<script type="text/javascript" src="js/jquery2.1.4.min.js"></script>
	</head>
	<body>
		<a href="">百度</a>
		<script type="text/javascript">
			/**
			 * document.querySelector('a').addEventListener('click',function(e){});
			 */
			$("a").click(function(e){
				console.log(e);
				//alert(1);
				//阻止跳转
				//return false;
				e.preventDefault();
			});
		</script>
	</body>
</html>
